﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Common;

public class client : MonoBehaviour {

	// Use this for initialization
	void Start () {
        //init some global virable
        /*StateEngine.Create();
        UIManager.Create();
        TimeSystem.Create();
        StateEngine.Instance.ChangeState(new WorldState(),ChangeStateType.destroyLast);


        
        //load data base
        item_base.Load();*/

        //SensorSystem.Create();



        //------------------------------this is some test code--------------

        //1.text XML analysis
        //Dictionary<int,Dictionary<string,string>> result = FileSurport.parseXML("other_item_base.XML");
        //var systemTime = TimeSystem.Instance.systemTime;

        //--------
        //int x = 5 / 2;
        //Debug.Log("-----------------------");
        //Debug.Log(x);
	}
	
	// Update is called once per frame
	void Update () {
        //float deltaTime = Time.deltaTime;
        //StateEngine.Instance.Update(deltaTime);
        //SensorSystem.Instance.Update();
	}
}
